<?php
require('config.php');

        $goods_id=$_REQUEST['goods_id'];
		$sql="select * from `".$oto."_goods_gallerys` where `goodsId`='".$goods_id."' and shopId='0'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($person_info))
		{
			$sql="select * from `".$oto."_integral` where `goodsId`='".$goods_id."'";
			$result=$db->query($sql);
			while($row=$result->fetch_assoc()){
				$person_info[]=$row;//将取得的所有数据赋值给person_info数组
			}
		}
		echo json_encode($person_info);
?>